#ifndef __TOUCH_PANEL_H__
#define __TOUCH_PANEL_H__

#ifdef __cplusplus
extern "C" {
#endif

/////////////////////////////////////////////////////////////////////////////
// Turn pad device

#include "Input_Irkeymap.h"

//////////  20080217 //////////
#define TP_CLBR_A_X		60
#define TP_CLBR_A_Y		60
#define TP_CLBR_B_X		660
#define TP_CLBR_B_Y		60
#define TP_CLBR_C_X		60
#define TP_CLBR_C_Y		420
#define TP_CLBR_D_X		660
#define TP_CLBR_D_Y		420
#define TP_CLBR_E_X		360
#define TP_CLBR_E_Y		240
#define TP_CLBR_OFFER	 25	

#define TP_KXY_LI	 85	
#define TP_KXY_HI	 105	


//#define CD_TEST_MODE
#define MODULE_TEST_MODE


// Initialize the touch device
int  dev_TouchPanelInit(void);

// Check touch panel status
// return TPANEL_NO_DATA/ or TPANEL_PRESSED
// NOTE: this will block some time when no data in EL907
int  dev_TouchPanelRead(void);

// Get position of touched
void dev_TouchPanelGetXY(int* x, int* y);

// Set offset (in pixels) of touch panel mapping to screen
void dev_TouchPanelSetOffset(int offsetX, int offsetY);

#ifdef __cplusplus
}
#endif

#endif
